<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/DesignerCompetition',
    'namespace'     => 'Beerus\\Modules\\DesignerCompetition\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 设计师获得的具体奖项
    $router->get('/award', 'AwardController@index')->name('award.list');
    $router->get('/award/create', 'AwardController@edit');
    $router->post('/award/save', 'AwardController@editSubmit');
    $router->get('/award/{id}/edit', 'AwardController@edit');
    $router->delete('/award/{id}', 'AwardController@del');
    // 设计师奖项荣誉（最终奖）
    $router->get('/honor', 'HonorController@index')->name('honor.list');
    $router->get('/honor/create', 'HonorController@edit');
    $router->post('/honor/save', 'HonorController@editSubmit');
    $router->get('/honor/{id}/edit', 'HonorController@edit');
    $router->delete('/honor/{id}', 'HonorController@del');
    // 获奖的整屋管理
    $router->get('/honor_article', 'HonorArticleController@index')->name('honor_article.list');
    $router->get('/honor_article/create', 'HonorArticleController@edit');
    $router->post('/honor_article/save', 'HonorArticleController@editSubmit');
    $router->get('/honor_article/{id}/edit', 'HonorArticleController@edit');
    $router->delete('/honor_article/{id}', 'HonorArticleController@del');
});
